3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and manipulate NURB curves. See "NURB Curves" for the definition of a NURB curve.
You can use the Q3NURBCurve_New function to create a new NURB curve.
TQ3GeometryObject Q3NURBCurve_New (const TQ3NURBCurveData *curveData);
You can use the Q3NURBCurve_Submit function to submit an immediate NURB curve for drawing, picking, bounding, or writing.
TQ3Status Q3NURBCurve_Submit (
const TQ3NURBCurveData *curveData,
TQ3ViewObject view);
The Q3NURBCurve_Submit function submits for drawing, picking, bounding, or writing the immediate NURB curve whose shape and attribute set are specified by the curveData parameter. The NURB curve is drawn, picked, bounded, or written according to the view characteristics specified in the view parameter.
You can use the Q3NURBCurve_GetData function to get the data that defines a NURB curve and its attributes.
TQ3Status Q3NURBCurve_GetData (
TQ3GeometryObject curve,
TQ3NURBCurveData *nurbCurveData);
You can use the Q3NURBCurve_SetData function to set the data that defines a NURB curve and its attributes.
TQ3Status Q3NURBCurve_SetData (
TQ3GeometryObject curve,
const TQ3NURBCurveData *nurbCurveData);
You can use the Q3NURBCurve_EmptyData function to release the memory occupied by the data structure returned by a previous call to Q3NURBCurve_GetData .
TQ3Status Q3NURBCurve_EmptyData (TQ3NURBCurveData *nurbCurveData);
You can use the Q3NURBCurve_GetControlPoint function to get a four-dimensional control point for a NURB curve.
TQ3Status Q3NURBCurve_GetControlPoint (
TQ3GeometryObject curve,
unsigned long pointIndex,
TQ3RationalPoint4D *point4D);
You can use the Q3NURBCurve_SetControlPoint function to set a four-dimensional control point for a NURB curve.
TQ3Status Q3NURBCurve_SetControlPoint (
TQ3GeometryObject curve,
unsigned long pointIndex,
const TQ3RationalPoint4D *point4D);
You can use the Q3NURBCurve_GetKnot function to get a knot of a NURB curve.
TQ3Status Q3NURBCurve_GetKnot (
TQ3GeometryObject curve,
unsigned long knotIndex,
float *knotValue);
You can use the Q3NURBCurve_SetKnot function to set a knot of a NURB curve.
TQ3Status Q3NURBCurve_SetKnot (
TQ3GeometryObject curve,
unsigned long knotIndex,
float knotValue);
Previous | QD3D Book | Overview | Chapter Contents | Next |